package com.jerkin.mynlp;

import com.mayabot.nlp.Mynlps;
import com.mayabot.nlp.common.resources.NlpResource;
import com.mayabot.nlp.common.resources.NlpResourceFactory;

import java.nio.charset.Charset;

/**
 * @description:
 * @className:MyNlpResourceFactory
 * @author:huhongzhi
 * @createTime:2021/3/15 11:34
 * @version:1.0
 */
public class MyNlpResourceFactory implements NlpResourceFactory {
    @Override
    public NlpResource load(String resourceName, Charset charset) {
        return null;
    }

//    @Override
//    public NlpResource load(String s,
//    charset) {
//        Mynlps.install(mynlpBuilder -> {
//            mynlpBuilder.addResourceFactory(MyNlpResourceFactory);
//        });
//        return null;
//    }
}